import cv2
image = cv2.imread("E:\opencv\opencv\sources\samples\data\lena.jpg")

image2 = cv2.cvtColor(image,cv2.COLOR_BGR2HSV)
cv2.imshow("HSV",image2)
(H,S,V) = cv2.split(image2)
cv2.imshow("H",H)
cv2.imshow("S",S)
cv2.imshow("V",V)
cv2.waitKey(0)